﻿using Grow.Module.Builder;

namespace Grow.WebAPI.CreateWebAPI
{
    /// <summary>
    /// WebAPI 创建构建起
    /// </summary>
    public interface ICreateWebAPIBuilder : IBuilder
    {
        /// <summary>
        /// 获取WebAPI映射集合
        /// </summary>
        /// <returns></returns>
        IEnumerable<IWebAPIMap> GetWebAPIMaps();

        /// <summary>
        /// 添加WebAPI映射
        /// </summary>
        /// <typeparam name="TWebAPIMap"></typeparam>
        /// <returns></returns>

        ICreateWebAPIBuilder AddWebAPIMap<TWebAPIMap>() where TWebAPIMap : IWebAPIMap, new();

    }
}
